<?php
 class Config_m extends CI_Model{
    function __construct(){
      parent::__construct();
    }
    
/* leer logo del sitio */
    function read_pic_logo(){
     $this->db->select('pictures.pic_path,pictures.pic_name_file,pictures.pic_ext');        
     $this->db->from('xtudent_config');
     $this->db->join('pictures', 'xtudent_config.id_pic_logo = pictures.id_pic', 'inner');
     $consulta = $this->db->get();
      if($consulta->num_rows()>0){
        return $consulta->result();
        } 
    }
    
/* Actualiza el logo del sitio */
     function update_pic_logo($id_pic){         
     $data = array('id_pic_logo' => $id_pic );
      $this->db->where('id_xtconfig',3);
     $this->db->update('xtudent_config',$data);
    }
    

  
}    
